package com.example.boot0502.mapper;

import com.example.boot0502.entity.Pet;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface PetMapper {
    @Select("select id from pet where type=#{type}")
    Pet select(String type);
    @Insert("insert into pet values(null,#{type},#{num},#{breed})")
    void insert(Pet pet);
}
